package org.web.accesscontrollist.server;

import org.web.accesscontrollist.sdk.dto.OperatorDTO;
import org.web.accesscontrollist.server.domain.AclBusinessLineDO;

public class AclServerHelper {

    public static AclBusinessLineDO buildAclBusinessLineDOByOperatorDTO(OperatorDTO operatorDTO) {
        AclBusinessLineDO aclBusinessLineDO = new AclBusinessLineDO();
        aclBusinessLineDO.setBusinessLine(operatorDTO.getBusinessLine());
        aclBusinessLineDO.setOperatorNum(operatorDTO.getOperatorNum());
        aclBusinessLineDO.setOperatorName(operatorDTO.getOperatorName());
        aclBusinessLineDO.setAccessKey(operatorDTO.getAccessKey());
        return aclBusinessLineDO;
    }
}
